package com.community.manage.mapper;

import com.community.common.entity.vo.UserLoginVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 查找用户
     * @param phone
     * @return
     */
    @Select("SELECT * FROM tb_user WHERE phone = #{phone}")
    UserLoginVo findUserByPhone(@Param("phone") String phone);
}
